package com.zgh.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_collection")
public class UserCollection implements Serializable {
    private static final long serialVersionUID = 8L;
    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    @TableField("userId")
    private int userId;
    @TableField("blogId")
    private int blogId;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private Blog blog;
    @TableField("collectionTime")
    private String collectionTime;
}
